package com.caopeng.achievementmanagement.mapper;

import com.caopeng.achievementmanagement.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface UserMapper {
    // 根据用户名和密码获取用户
    public User getByUserNameAndPassword(@Param("username")String userName, @Param("password")String password);

    // 注册
    public int insertUser(User user);
}
